﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GabageFactory.Models.tailingpond_backwater_info>" %>
<%@ Import Namespace="System.Collections.Generic" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	进浆及回水（每日）
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="dolphincontainer">
	    <div id="dolphinnav">
	        <ul>
                <li><a href="/Record/TailingpondWater/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>水位及水质</span></a></li>
                <li><a href="javascript:return(false);" class="current"><span>进浆及回水</span></a></li>
                <li><a href="/Record/TailingpondDitch/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>初期坝及挡水坝</span></a></li>
                <li><a href="/Record/TailingpondFilldam/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>尾矿堆积坝</span></a></li>
	        </ul>
	    </div>
	</div>

    <%
           bool result = (bool)ViewData["success"];
           if(result){ 
        %>
           <div style="margin-top:20px;font-weight:bold;color:blue;text-align:center">进浆及回水更新成功</div>
        <%
        }
        %>

    <% using (Html.BeginForm())
    {%>
        <%= Html.ValidationSummary(true) %>
        <%= Html.HiddenFor(model => model.tailingpond_id) %>
        <%= Html.HiddenFor(model => model.date) %>
        <%= Html.Hidden("factoryId", ViewData["factoryId"]) %>
            
    <table class="tableCss" cellspacing="0" cellpadding="0" align="center" border="0" style="margin-top:10px;">
        <tr>
            <th colspan="2" class="heightrow" align="center" style="text-align:center">
                进浆及回水（每日）
            </th>
        </tr>
        <tr>
            <td class="row1" align="left" width="100px" style="padding-left:20px">测量人员：</td>
            <td class="row1" align="left">
                <%= Html.DropDownList("tester_id", ViewData["users"] as List<SelectListItem>, "请选择", new { style = "width:150px" })%>
                <%= Html.ValidationMessageFor(model => model.tester_id)%>
            </td>
        </tr>
        <tr>
            <td class="row1" align="left" width="100px" style="padding-left:20px">进浆量：</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.flow_amount)%> m<sup>3</sup>/hr
                <%= Html.ValidationMessageFor(model => model.flow_amount)%>
            </td>
        </tr>
        <tr>
            <td class="row1" align="left" style="padding-left:20px">回水量：</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.back_water)%> m<sup>3</sup>/hr
                <%= Html.ValidationMessageFor(model => model.back_water)%>
            </td>
        </tr>
        
        
        <tr>
            <td class="row1" align="left" colspan="2" style="padding-top:20px;padding-left:20px">回水方式：</td>
        </tr>

        <tr>
            <td colspan="2" class="row1" style="padding-left:20px">
                <span><input type="radio" name="back_water_style" value="1" <%if (Model.back_water_style == 1){ %> checked="checked"<%} %>/>移动式水泵</span>
            </td>
         </tr>
         <tr>
            <td colspan="2" class="row1" style="padding-left:20px">
                <span><input type="radio" name="back_water_style" value="2" <%if (Model.back_water_style == 2){ %> checked="checked"<%} %>/>浮动式水泵</span>
            </td>
        </tr>
        
        <tr>
            <td class="row1" align="left" colspan="2" style="padding-top:20px;padding-left:20px">排水涵洞是否启用：</td>
        </tr>

        <tr>
            <td colspan="2" class="row1" style="padding-left:20px">
                <span><input type="radio" name="is_drainage_culvert_used" value="0" <%if (Model.is_drainage_culvert_used == 0){ %> checked="checked"<%} %>/>否</span>
            </td>
         </tr>
         <tr>
            <td colspan="2" class="row1" style="padding-left:20px">
                <span><input type="radio" name="is_drainage_culvert_used" value="1" <%if (Model.is_drainage_culvert_used == 1){ %> checked="checked"<%} %>/>是</span>
                <span style="margin-left:20px">
                <%= Html.TextBoxFor(model => model.drainage_culvert_water_level)%> m
                <%= Html.ValidationMessageFor(model => model.drainage_culvert_water_level)%>
                </span>
            </td>
        </tr>
 
        <tr>
            <td class="row1" align="left" colspan="2" style="padding-top:20px;padding-left:20px">当日情况补充：</td>
        </tr>
        <tr>
            <td colspan="2"  class="row1"  align="left" style="padding-left:20px">
                <%= Html.TextAreaFor(model => model.description, new { cols = "80", rows = "10" })%>
                <%= Html.ValidationMessageFor(model => model.description)%>
            </td>
        </tr>
    </table>
    <div style="margin-top:25px;text-align:center">
        <input type="submit" value="提    交" style="font-size:16px;font-weight:bold" />
    </div>
    <% } %>
</asp:Content>
